<!-- grandFather -->
<template>
  <div class="grandFather">
    <p>grandFather</p>
    <!-- <i-form v-ref:form-inline :model="formInline" :rules="ruleInline" inline>
      <Form-item prop="user">
        <i-input type="text" :value.sync="formInline.user" placeholder="Username">
          <Icon type="ios-person-outline" slot="prepend"></Icon>
        </i-input>
      </Form-item>
      <Form-item prop="password">
        <i-input type="password" :value.sync="formInline.password" placeholder="Password">
          <Icon type="ios-locked-outline" slot="prepend"></Icon>
        </i-input>
      </Form-item>
      <Form-item>
        <i-button type="primary" @click="handleSubmit('formInline')">登录</i-button>
      </Form-item>
    </i-form> -->
  </div>
</template>

<script>
export default {
  name: "grandFather",
  components: {},
  data() {
    return {
      // formInline: {
      //   user: "",
      //   password: ""
      // },
      // ruleInline: {
      //   user: [{ required: true, pattern: /^1[3456789]\d{9}$/, message: "请填写用户名", trigger: "blur" }],
      //   password: [
      //     { required: true, message: "请填写密码", trigger: "blur" },
      //     {
      //       type: "string",
      //       min: 6,
      //       message: "密码长度不能小于6位",
      //       trigger: "blur"
      //     }
      //   ]
      // }
    };
  },
  computed: {},
  watch: {},
  methods: {
    // handleSubmit(name) {
    //   this.$refs[name].validate(valid => {
    //     if (valid) {
    //       this.$Message.success("提交成功!");
    //     } else {
    //       this.$Message.error("表单验证失败!");
    //     }
    //   });
    // }
  },
  created() {},
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  activated() {}
};
</script>
<style scoped>
</style>